//一张图相关接口
import axios from 'axios'
export default{
    fn1(data){
        var data= Object.assign({type:'',mobile:'',password:''},data)
		return axios.post('guser/userDetailInfo.do?method=login', data)
    },

    test2(){
        var data= Object.assign({type:'',mobile:'',password:''},data)
		    return axios.post('guser/userDetailInfo.do?method=login', data)
    },
    getTrack(data){
      return axios.get('/gps/getTrack',{params:data})
    },

    /*
    * 获取轨迹列表  GET /gps/getLocus
    * */
    getLocus(data){
        return axios.get("/gps/getLocus",{params:data})
    },
    //保存电子围栏 GET /gpsElectronicFence/addOrUpdate
    gpsElectronicFenceAdd(data){
        return axios.get("gpsElectronicFence/addOrUpdate",{params:data})
    },
    //查询电子围栏 GET /gpsElectronicFence/list
    getGpsElectronicFence(){
        return axios.get("gpsElectronicFence/list");
    },
    //获取人员巡查位置信息 及其轨迹  /taskPatrol/getTaskList
    getPatrolPpsition(data){
        return axios.get("taskPatrol/getTaskList",{params:data});
    },
    //获取轨迹详情 GET /taskPatrol/getTaskTrack
    getTaskDetails(data){
        return axios.get("taskPatrol/getTaskTrack",{params:data})
    },
    //获取预警信息 GET /gpsElectronicFenceWarn/list
    gpsElectronicFenceWarn(data){
        return axios.get("gpsElectronicFenceWarn/list",{params:data});
    },
	
	//固定场所/道路巡查统计
	getChartData_daolu(data){
	    return axios.get("statistics/getPatrolStatistics",{params:data});
	},
	
	//人员巡查任务统计
	getChartData_task(data){
	    return axios.get("statistics/getPersonSafeStatistics",{params:data});
	}
	
	
	
}
